package com.qf.service.impl;

import com.qf.bean.Major;
import com.qf.mapper.MajorMapper;
import com.qf.service.MajorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class MajorServiceImpl implements MajorService {
    @Autowired
    private MajorMapper majorMapper;
    @Override
    public List<Major> find(int did) {
        return majorMapper.find(did);
    }

    @Override
    public List<Major> findAll() {
        return majorMapper.findAll();
    }
}
